package com.hqyj.shop.controller;


import com.hqyj.shop.service.ProductIndexService;
import com.hqyj.shop.util.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rock
 * @since 2024-10-11 09:36:24
 */
@RestController
@RequestMapping("/product-index")
public class ProductIndexController {

    @Autowired
    ProductIndexService service;

    @GetMapping("/query")
    public ResultVo query(){
        return service.queryIndex();
    }

}

